package gscore

import (
	"context"

	"github.com/spf13/cobra"
)

type FlagCallback func(cobraCmd *cobra.Command)

type GracefulTask func(ctx context.Context)

func NewGracefulTask(call func(ctx context.Context)) GracefulTask {
	return call
}
